package jsen.tool.ddd.demo.adapter.persistent;

import jsen.tool.ddd.demo.domain.brand.Brand;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author jsen
 * @date 2021/10/6
 */
public class BrandAssemble {
    public Brand brand(BrandPo brandPo) {
        return null;
    }

    public List<Brand> brand(List<BrandPo> brandPo) {
        return brandPo.stream().map(this::brand).collect(Collectors.toList());
    }
}
